<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="css/bootstrap.min.css"/>

<script src="js/jquery-1.10.2.min.js"></script>
<script src='js/bootstrap.min.js'></script>
<body>


<!-- modal固定布局，上下左右都是0表示充满全屏，支持移动设备上使用触摸方式进行滚动。。-->
<div class="modal-dialog modal-sm">
    <!-- modal-dialog默认相对定位，自适应宽度，大于768px时宽度600，居中-->
    <div class="modal-content">
        <!-- modal-content模态框的边框、边距、背景色、阴影效果。-->
        <div class="modal-header">
            <button class="close" data-dismiss="modal">&times;</button>
            <ul class="nav nav-tabs">
                <li class="active"><a href="#name1" data-toggle="tab">密码登录</a></li>
                <li ><a href="#name2" data-toggle="tab">短信登录</a></li>
            </ul>
        </div>

        <div class="tab-pane fade in active " id="name1">
            <div class="modal-body">
                <form action="#">
                    <div class="col-md-10 col-md-offset-1 myMP">
                        <input class="form-control" type="text" placeholder="手机/邮箱/用户名"/>
                    </div>
                    <div class="col-md-10 col-md-offset-1 myMP">
                        <input class="form-control" type="text" placeholder="密码"/>
                    </div>
                    <div class="col-md-10 col-md-offset-1 myMP">
                        <input type="checkbox"/>下次自动登录
                    </div>
                    <div class="col-md-12 myB">
                        <input class="btn btn-primary form-control" type="submit" value="登录"/>
                    </div>
                </form>
            </div>
        </div>
        <div class="tab-pane fade " id="name2">
            <div class="modal-body">
                <form action="#">
                    <div class="col-md-10 col-md-offset-1 myMP">
                        <input type="text" class="form-control" name="phone" id="phone_num"  onblur="input(this.value)"  value="请输入手机号码" onFocus="this.value = '';"  >
                    </div>
                    <div class="col-md-10 col-md-offset-1 myMP">
                        <input class="form-control"  type="text" placeholder="请输入验证码">
                        <input  class="form-control" type="button" id="code_btn" disabled="true"  onclick="code(),settime(this);" value="获取验证码" >
                    </div>
                    <div class="col-md-10 col-md-offset-1 myMP">
                        <input type="checkbox"/>下次自动登录
                    </div>
                    <div class="col-md-12 myB">
                        <input class="btn btn-primary form-control" type="submit" value="登录"/>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>
</div>


</body>
</html>